<?php
/**
 * 前端页面加载
 * @copyright (c) Emlog All Rights Reserved
 */

 if (!isset($_SERVER["HTTP_APPNAME"])) {//非SAE平台下运行，加载普通核心
	require_once 'init.php';
}else{
	require_once 'init.sae.php';
}

define('TEMPLATE_PATH', TPLS_PATH.Option::get('nonce_templet').'/');//前台模板路径
define('CURPAGE_HOME',  'home');
define('CURPAGE_LOG',   'echo_log');
define('CURPAGE_TW',    'twitter');

$emDispatcher = Dispatcher::getInstance();
$emDispatcher->dispatch();
View::output();
